var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        im.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        im.dispose()
    } else {
        if (status === a++) {
            im.updateInfoQuest(64711, "open=2");
            im.playerMessage(5, "聊天表情发放完毕。");
            im.addStickerGroup(1000, [10000001, 10000002, 10000003, 10000004, 10000005, 10000006, 10000007, 10000008, 10000009, 10000010], [94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000, 94354848000000000]);
            im.removeItem(im.getItemId());
            im.dispose()
        }
    }
};